<?php
/**
 * ClassName: TreatmentCateService
 * Description:
 * @Author 周昌
 * @Create 2023/11/17 16:20
 */

namespace service\admin;


use service\BaseService;

class TreatmentCateService extends BaseService
{
    protected static $model='model\TreatmentCateModel';

    //列表数据
    public static function getAjaxData($where)
    {
        $table = self::$model::order('id desc');
        return self::tableJsonData($table, $where, function ($data){
            $data['hospital_name'] = $data['hospital_id']?HospitalService::getNameByKey($data['hospital_id'],''):'';
            return $data;
        });
    }

}